package hy.demo2;

public class Person {
    Dog d;

    @Override
    public String toString() {
        return "Person{" +
                "d=" + d +
                '}';
    }

    public Dog getD() {
        return d;
    }

    public void setD(Dog d) {
        this.d = d;
    }
}
